package com.yq.interview.jvm.study.oom;

/**
 * @ClassName JavaHeapSpace
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/11/25 17:53
 * @Version 1.0
 */
public class JavaHeapSpace {
    public static void main(String[] args) {
        //-Xmx10m -Xms10m
        byte[] bytes=new byte[20*1024*1024];
        //Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    }
}
